/* =========================================
   RESPONSIVE SERVICIOS
========================================= */

@media (max-width: 992px){

  /* HEADER */
  .header{
    width: 100%;
    height: auto;
    padding: 12px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    box-sizing:border-box;
  }

  .logo{
    width: 220px;
    height: auto;
    margin: 0 !important;
  }

  .barnav{
    display:flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content:flex-end;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    height:auto;
    list-style:none;
  }

  .menu{
    width:auto !important;
    height:auto;
    margin:0 !important;
  }

  .barnav a{
    font-size:14px;
    white-space:nowrap;
  }

  /* CONTENIDO SERVICIOS */
  .container{
    width: 100%;
    padding: 24px 0;
  }

  .grid-box{
    width: min(1200px, 92%);
    margin: 0 auto;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .box{
    height:auto;
  }

  .box-title{
    font-size: 16px;
  }

  .box-text{
    font-size: 14px;
    line-height: 1.5;
  }

  /* FOOTER */
  .footer{
    height:auto !important;
    padding: 24px 16px 10px;
    box-sizing:border-box;
  }

  .footer-grid{
    margin: 0 !important;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items:start;
  }

  .footer h4{ margin:0 0 10px 0 !important; }
  .footer a{ margin:0 0 8px 0; }

  .footer-logo{
    height: 140px;
    width:auto;
  }

  .container-footer1{
    margin-top: 12px;
    text-align:center;
  }
}

@media (max-width: 768px){

  /* HEADER: logo arriba + menú abajo (horizontal wrap) */
  .header{
    flex-direction: column;
    align-items:center;
    text-align:center;
  }

  .barnav{
    justify-content:center;
  }

  /* SERVICIOS: 1 columna si quieres más limpio en móvil */
  .grid-box{
    grid-template-columns: 1fr;
  }

  .box-title{
    font-size: 15px;
  }

  /* FOOTER: 1 columna */
  .footer-grid{
    grid-template-columns: 1fr;
    text-align:center;
    justify-items:center;
  }
}

@media (max-width: 520px){

  .logo{ width: 200px; }

  .barnav a{ font-size: 13px; }

  .container{ padding: 18px 0; }

  .box-text{ font-size: 13px; }
}